<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/2/25
 * Time: 14:51
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait DynamicTrait
{
    use BaseTrait;

    // 验证秘钥
    protected $loginSession;
    // 媒体列表字符串
    protected $photo_list_str;
    // 动态内容
    protected $content;
    // 动态地理位置
    protected $address;
    // 动态地理位置名称
    protected $address_name;
    // 动态经纬度
    protected $latlng;
    // 分页大小
    protected $limit;
    // 视频地址
    protected $video_url;
    // 是否转码
    protected $is_transcode;
    // 视频显示状态
    protected $status;
    // 动态ID
    protected $dynamic_id;

    public function __construct(Request $request)
    {
        $this->loginSession = $request->input('loginSession', '');
        $this->photo_list_str = $request->input('photo_list_str', '');
        $this->content = $request->input('content', '');
        $this->address = $request->input('address', '');
        $this->address_name = $request->input('address_name', '');
        $this->latlng = $request->input('latlng', '');
        $this->limit = $request->input('limit' , 0);
        $this->video_url = $request->input('video_url', '');
        $this->is_transcode = $request->input('is_transcode', '');
        $this->status = $request->input('status', '');
        $this->dynamic_id = $request->input('dynamic_id', 0);
    }
}